package com.kmxd.ams.client.search.dto;

import com.kmxd.ams.app.search.SearchTypeConst;
import com.kmxd.ams.core.common.enums.ArchStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 模糊检索
 *
 * @author nickbi
 */
@Schema(description = "模糊检索")
@Data
public class SearchByKeywordsDTO implements Serializable {

  @Schema(description = "关键词")
  @NotNull(message = "关键词不能为空")
  private String keywords;

  @Schema(description = "状态")
  @NotNull(message = "状态不能为空")
  private Integer status = ArchStatusEnum.S0.getCode();

  @Schema(description = "数据类型")
  private Integer type = SearchTypeConst.MYSQL;

  @Schema(description = "出库过滤")
  private Boolean outArch;
}
